﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NIEN_LUAN
{
    public partial class FormReportNhanVien : Form
    {
        private Db.DataContentDataContext db = new NIEN_LUAN.Db.DataContentDataContext();
        private FormQuanLyNhanVien frmNhanVien;

        public FormReportNhanVien()
        {
            InitializeComponent();
        }

        public FormReportNhanVien(FormQuanLyNhanVien frm)
        {
            InitializeComponent();
            frmNhanVien = frm;
        }

        private void FormReportNhanVien_Load(object sender, EventArgs e)
        {
            var nhanvien = (from m in db.NHANVIENs
                           //where here                            
                           select m                           
                           ).ToList();
            this.BindingSource.DataSource = nhanvien;
            this.reportViewer1.RefreshReport();
            
        }
    }
}
